package com.example.core.mapping;

import com.example.core.po.BasePo;
import com.example.core.utils.ReflectionKit;
import com.example.core.vo.BaseVo;

public class BaseMapping<T extends BasePo, V extends BaseVo> implements Mapping<T, V> {

    @Override
    public Class<?> getPoClass() {
        return ReflectionKit.getSuperClassGenricType(getClass(), 0);
    }

    @Override
    public Class<?> getVoClass() {
        return ReflectionKit.getSuperClassGenricType(getClass(), 1);
    }

    @Override
    public void toPo(V vo, T po) throws Exception {

    }

    @Override
    public void toVo(T po, V vo) throws Exception {

    }
}
